Find the number of cubes placed in the given cuboid